#include <crtdbg.h>
#define _CRTDBG_MAP_ALLOC

#include "hashtable.h"
#include <assert.h>
#include <string.h>
#include <stdio.h>

int main(){
    HashTable Ht;
	char * test;
	char * test2;
	
	ht_init(&Ht, 100, 0,0);
	test = malloc(100);
	test2 = malloc(100);
	strcpy(test, "225-93-67");
	printf("%s\n", test);
	ht_set(&Ht, "Vasya", (Pointer)test, strlen(test)+1);
	//assert ( 0 == strcmp((char *)ht_get(&Ht, "Vasya"), "225-93-67"));
	free(test2);
	test2 = ht_get(&Ht, "Vasya");
	printf("%s\n", test2);

	free(test);
	

    //ht_set(&new, "Vania", (Pointer)"4-8-15-16", strlen("4-8-15-16"));

    ht_destroy(&Ht);
	

	_CrtDumpMemoryLeaks();

	system("pause");
    return 0;
}